﻿using Core.Crypto;

namespace Core
{
    public static partial class Utils
    {
        /// <summary>
        /// 加密
        /// </summary>
        public static class Crypto
        {
            public static string Encrypt(string str, string key)
            {
                return AES.Encrypt(str, key);
            }

            public static string Decrypt(string str, string key)
            {
                return AES.Decrypt(str, key);
            }
        }
    }
}